package com.test.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.test.entity.dto.Account;
import com.test.entity.vo.request.EmailAccountVo;
import com.test.entity.vo.request.ResetConfirmVo;
import com.test.entity.vo.request.ResetPasswordVo;
import com.test.entity.vo.request.ResetPwdVo;
import org.springframework.security.core.userdetails.UserDetailsService;

public interface AccountService extends IService<Account>, UserDetailsService{
     Account findByUsername(String username);
     // 发送验证码 验证码类型，邮箱，ip
     String registerEmailVerifyCode(String type,String email,String ip);
     // 注册账号
     String registerEmailAccount(EmailAccountVo vo);
     //重置密码验证
     String resetConfirm(ResetConfirmVo vo);
     //重置密码
     String resetPassword(ResetPasswordVo vo);
     //重置邮箱
     String resetEmail(int id,ResetConfirmVo vo);
     String resetPassword(int id, ResetPwdVo vo);

}
